#include "utility.h";

//#include "Aquarium_Devices.h";
//#include "Aquarium_Modes.h";

extern LiquidCrystal     lcd;
//extern Aquarium_Devices aquarium_devices;
//extern Aquarium_Modes       aquarium_modes;

char buffer[25];

prog_char day_0[] PROGMEM = "Sun";
prog_char day_1[] PROGMEM = "Mon";
prog_char day_2[] PROGMEM = "Tue";
prog_char day_3[] PROGMEM = "Wed";
prog_char day_4[] PROGMEM = "Thu";
prog_char day_5[] PROGMEM = "Fri";
prog_char day_6[] PROGMEM = "Sat";

PROGMEM const char *days_names_table[] = 
{   
  day_0,
  day_1,
  day_2,
  day_3,
  day_4,
  day_5,
  day_6 
};

prog_char short_day_0[] PROGMEM = "S ";
prog_char short_day_1[] PROGMEM = "M ";
prog_char short_day_2[] PROGMEM = "T ";
prog_char short_day_3[] PROGMEM = "W ";
prog_char short_day_4[] PROGMEM = "T ";
prog_char short_day_5[] PROGMEM = "F ";
prog_char short_day_6[] PROGMEM = "S";

PROGMEM const char *short_days_names_table[] = 
{   
  short_day_0,
  short_day_1,
  short_day_2,
  short_day_3,
  short_day_4,
  short_day_5,
  short_day_6 
};


prog_char TEMP_0[] PROGMEM = "TEMP";
prog_char Temp_1[] PROGMEM = "Temp";
prog_char free_memory_2[] PROGMEM = "freeMemory=";
prog_char probe_3[] PROGMEM = "Probe";
prog_char Stirrer_Time_4[] PROGMEM = "Stirrer Time : ";
prog_char Are_you_sure_5[] PROGMEM = "Are you sure?";
prog_char yes_no_6[] PROGMEM = "   1.Yes 3 .No";
prog_char Liquid_7[] PROGMEM = "Liquid  : ";
prog_char Clear_History_8[] PROGMEM = "To Clear History";
prog_char Prass_5_9[] PROGMEM = "Prass 5";
prog_char mode_10[] PROGMEM = " Mode";
prog_char No_Alerts_11[] PROGMEM = "No Alerts";
prog_char Alerts_ON_12[] PROGMEM = "Alerts ON";
prog_char yes_no_2_13[] PROGMEM = "   *.Yes # .No";
prog_char empty_line_14[] PROGMEM = "                    ";
prog_char initialize_clock_15[] PROGMEM = "initialize clock";
prog_char initialize_temp_16[] PROGMEM = "initialize temp";
prog_char Waiting_17[] PROGMEM = "Waiting ";
prog_char Minutes_18[] PROGMEM = " Minutes";

extern PROGMEM const char *gen_string_table[] =
{
  TEMP_0,
  Temp_1,
  free_memory_2,
  probe_3,
  Stirrer_Time_4,
  Are_you_sure_5,
  yes_no_6,
  Liquid_7,
  Clear_History_8,
  Prass_5_9,
  mode_10,
  No_Alerts_11,
  Alerts_ON_12,
  yes_no_2_13,
  empty_line_14,
  initialize_clock_15,
  initialize_temp_16,
  Waiting_17,
  Minutes_18
};


void Print_Space(){
  lcd.print(" ");
}

void Print_Space(byte num){
  for ( byte i = 0 ; i < num ; ++i ){
    lcd.print(" ");
  }
}


void Print_Colon(){
  lcd.print(":");
}

void Print_ON(){
  lcd.print("ON ");
}

void Print_OFF(){
  lcd.print("OFF");
}

void Print_AUTO(){
  lcd.print("AUTO");
}
void Reset_Memory(){
  for ( int i = 0 ; i <4096 ; ++i){
    EEPROM.write(i, 0) ;
  }
  
  //aquarium_modes.update();
  //aquarium_devices.update_devices();
    
}


void Wait_1Min(){
  delay(60000);
}

